/*
 * Endless Code License
 * Copyright (C) 2009 Jingul, Kim
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "ecGLU.h"

JNIEXPORT void JNICALL Java_ec_gfx_GLU_pickMatrix(JNIEnv *env, jobject obj, jdouble x,
		jdouble y, jdouble w, jdouble h, jintArray array) {
	jint *ar = env->GetIntArrayElements(array, JNI_FALSE);
	gluPickMatrix(x, y, w, h, (GLint*)ar);
	env->ReleaseIntArrayElements(array, ar, 0);
}

JNIEXPORT void JNICALL Java_ec_gfx_GLU_ortho2D(JNIEnv *, jobject, jdouble left,
		jdouble right, jdouble bottom, jdouble top) {
	gluOrtho2D(left, right, bottom, top);
}
